package org.jeecg.modules.middle.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.manage.entity.CaishuiMiddleCompany;
import org.jeecg.modules.manage.entity.CaishuiServiceCompany;

import java.util.List;

/**
 * @Description: 服务公司（税源地）
 * @Author: yfkj
 * @Date:   2023-03-01
 * @Version: V1.0
 */
public interface CaishuiServiceCompanyMapper extends BaseMapper<CaishuiServiceCompany> {

    /**
     * 查询中台用户绑定的服务公司列表
     * @return
     */
    @Select("SELECT s.company_id,s.company_name FROM caishui_middle_company s ORDER BY s.create_time ASC")
    public List<CaishuiMiddleCompany> queryMiddleUserCompany();

}
